#if
if(5>3 and 5>4):
    print("5 is greater than 3")

num=int(input("请输入数字"))
if num>0:
    print("数字",num,"大于0")
else
    print("数字"，num,"小于0")
if num<0:
    print("数字",num,"小于0")
elif 0 <= num < 1000:
    print("数字",num"在0-1000之间")
elif 1000 <= num < 2000:
    print("数字",num,"在1000-2000之间")
else:
    print("数字",num,"大于2000")
#i = 1
#while i <= 10:
        #print(i,end=" ")
        #i += 1
    #while True:
        #print("hello")
    str = ("hello world")
    for i in str:
        print(i,end="-")
    #序列
    for i in range(1,10):
        print(i,end=" ")
    # ****
    # *****
    for i in range(1,6):
        for j in range(1,i+1):
            print("*",end=" ")
        print()